﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TransshipOrder.aspx.cs" Inherits="WMS6.Web.CrossDock.TransshipOrder1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>ASN</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />
    <script src="../Js/jquery.js" type="text/javascript"></script>
    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script> 
    <script src="../Js/util.js" type="text/javascript"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script>
    <script src="../Js/Verification.js" type="text/javascript"></script>
    <script src="../Js/checkbox.js" type="text/javascript"></script>
    <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>
   
    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            initEditNewPage();
        }
        
        function newASN()
        {
            var from = document.getElementById("hdnFrom").value;
            window.location.href = "TransshipOrder.aspx?from=" + from;
            return false;
        }
        
        //弹出窗口选择PO
        function popPurchaseOrderQuery()
        {
            var rtnValue = popModalWindow('../OrderManagement/PurchaseOrderQuery.aspx?action=txtPoID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;')
            var temp = document.getElementById("hdnInportValue").value ;
            if(rtnValue != null && rtnValue.toString() != "")
            {
                setTab('one',1,6);
                //document.getElementById("txtPoID").focus();
                document.getElementById("txtPoID").value = rtnValue;           
                document.getElementById("hdnImportPOValue").value = rtnValue;    
//                if(rtnValue == temp)
//                {
                    if(document.getElementById("btnInputPO") != null)
                    {       
                        document.getElementById("hdnPageType").value = "1";           
                        document.getElementById("btnInputPO").click();
                    }
//                }
            }
            document.getElementById("hdnInportValue").value = rtnValue;
        }
        
        //弹出窗口选择货主
        function selectOwner()
        {
            var rtnValue = popModalWindow('../Configuration/OwnerQuery.aspx?action=txtOwnerID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtOwnerID").focus();
                document.getElementById("txtOwnerID").value = rtnValue;
            }
        }
        
        //弹出窗口选择供应商
        function selectVendor()
        {
            var rtnValue = popModalWindow('../Configuration/VendorQuery.aspx?action=txtVendorID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtVendorID").focus();
                document.getElementById("txtVendorID").value = rtnValue;
                   document.getElementById("hdnPageType").value = "1"; //标识符，标识本次操作是否会导致页面刷新 默认0  1代表会刷新
                __doPostBack("txtVendorID_TextChanged","");
            }
        }
        
        //弹出窗口选择承运商
        function selectCarrier()
        {
            var rtnValue = popModalWindow('../Configuration/CarrierQuery.aspx?action=txtCarrierID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtCarrierID").focus();
                document.getElementById("txtCarrierID").value = rtnValue;
                   document.getElementById("hdnPageType").value = "1"; //标识符，标识本次操作是否会导致页面刷新 默认0  1代表会刷新
                __doPostBack("txtCarrierID_TextChanged","");
            }
        }
        
        //弹出 打印 入库验收单 的窗口
        function popPrintReceipt()
        {
            var receiptID = document.getElementById("txtReceiptID").value;
            window.open('../Common/PrintReport.aspx?rtype=printreceipt&receiptID='+receiptID,'PrintWindow','width=860,height=610,top=50,left=50,toolbar=no,menubar=no,scrollbars=yes, resizable=yes,location=no,status=no');
        }
                
        function showAction()
		{	
			var pos = getElementPos("btnAction");	
			document.getElementById("actionDiv").style.top = pos.y+17;
			document.getElementById("actionDiv").style.left = pos.x;  			
			document.getElementById("hiddenFlag").value = '1';
		}
		
		//显示 报表 DIV
		function showReport()
		{	
			var pos = getElementPos("htmlbtnReport");	
			document.getElementById("reportDiv").style.top = pos.y+17;
			document.getElementById("reportDiv").style.left = pos.x;  			
			document.getElementById("hiddenReportFlag").value = '1';
		}
		
       function hiddenDiv()
		{
			var flag = document.getElementById("hiddenFlag").value
			if(flag == "1")
			{
				document.getElementById("actionDiv").style.display = "block";
				document.getElementById("hiddenFlag").value = '0';
			}
			else 
			{
				document.getElementById("actionDiv").style.display = "none";
			}
		}
		//隐藏 报表 DIV
		function hiddenReportDiv()
		{
			var flag = document.getElementById("hiddenReportFlag").value
			if(flag == "1")
			{
				document.getElementById("reportDiv").style.display = "block";
				document.getElementById("hiddenReportFlag").value = '0';
			}
			else 
			{
				document.getElementById("reportDiv").style.display = "none";
			}
		}
			   //导入
	   function DataImport()
		{		    
		   var rtnValue = popModalWindow('../Common/ImporData.aspx?action=RECEIPTDETAIL&OrderID='+document.getElementById('txtReceiptID').value+'&OwnerID='+document.getElementById('txtOwnerID').value,'dialogWidth=520px;dialogHeight=300px;center=yes;resizable=yes;status=no;')
		   if(rtnValue != "")
		   {
		      window.location.href = "ASN.aspx?from=list&ID="+document.getElementById('txtReceiptID').value;
		   }
		}
		
        function GetASNByReceiptID()
		{
//		    document.getElementById("hdnPageType").value = "1";
//		    var poID = document.getElementById("<%=txtReceiptID.ClientID %>").value;
//		    var varForm = document.getElementById("<%=hdnFrom.ClientID%>").value;
//		    window.location.href("ASN.aspx?from="+varForm+"&ID="+poID);
		}

		function confirmMsg(code) {
		    if (code == "F4100_001") {
		        if (confirm('<%=GetGlobalMsgResource("F4100_001") %>')) {
		            return true;
		        }
		        else {
		            return false;
		        }
		    }
		}
    </script>
</head>
<body onbeforeunload="SavePageValue('btnSave','hdnPageQty');">
    <form id="F4011" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom"><asp:Label ID="lblOwner" runat="server" CssClass="label_header" 
                            Text="直运订单" meta:resourcekey="lblOwner"></asp:Label></td>
                    <td><asp:Button ID="btnGoBack" runat="server" CssClass="button"  Text="<%$Resources:ButtonResource,btnGoBack%>"  
                            CausesValidation="False" onclick="btnGoBack_Click" 
                           /></td>
                    <td><asp:Button ID="btnNew" runat="server" CssClass="button"
                            Text="<%$Resources:ButtonResource,btnNew%>"  AccessKey="n" OnClientClick="newASN();return false;" 
                            /></td>
                    <td><asp:Button ID="btnSave" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnSave%>" 
                            AccessKey="s" onclick="btnSave_Click"  
                            OnClientClick="SethdnPageQty('hdnPageQty');" 
                               /></td>
                    <td><asp:Button ID="btnDelete" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnDelete%>"  
                            AccessKey="d" 
                          OnClientClick="javascript:if(confirmMsg('F4100_001')) return true; else return false;"
                            onclick="btnDelete_Click"  /></td>
                    <td><asp:Button ID="btnCopy" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnCopy%>" 
                            AccessKey="c" onclick="btnCopy_Click" 
                           /></td>
                    <td>
                        <input id="btnAction" type="button" runat="server" value="<%$Resources:ButtonResource,btnAction%>" class="button"  onclick="showAction();" />        
                         
                    </td>
                     <td><input id="htmlbtnReport" type="button" runat="server" value="<%$Resources:ButtonResource,btnReport%>" class="button"  onclick="showReport();" /></td>   
                </tr>
            </table>
        </div>
        
        
        <asp:UpdatePanel ID="up1" runat="server">
            <ContentTemplate>
                <div>
                    <asp:Label ID="lblMsg" runat="server" CssClass="label_message" 
                        meta:resourcekey="lblMsg"></asp:Label>
                </div>
                
               <div id="div_menu">
                    <div style="float: left; width: 8px;">
                        <div class="tabL" id="divL1"></div>
                    </div>
                    <div style="float:left;" class="tabLabelCont tabCur" onclick="setTab('one',1,4)" id="divM1">
                        <asp:Label ID="one1" CssClass="hover" runat="server" 
                           >常规</asp:Label></div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR" id="divR1"></div>
                    </div>
                    
                    <div style="float: left; width: 8px;">
                        <div class="tabL_1" id="divL2"></div>
                    </div>
                    <div style="float:left;" class="tabLabelCont tabCur_1" onclick="setTab('one',2,4);" id="divM2">
                        <asp:Label ID="one2" CssClass="navigationlabel" runat="server" 
                          >&nbsp;收货人&nbsp;</asp:Label></div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR_1" id="divR2"></div>
                    </div>
                    
                    <div style="float: left; width: 8px;">
                        <div class="tabL_1" id="divL3"></div>
                    </div>
                    <div style="float:left;" class="tabLabelCont tabCur_1" onclick="setTab('one',3,4);" id="divM3">
                        <asp:Label ID="one3" CssClass="navigationlabel" runat="server" 
                           >其他</asp:Label></div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR_1" id="divR3"></div>
                    </div>
                    
                     <div style="float: left; width: 8px;">
                        <div class="tabL_1" id="divL4"></div>
                    </div>
                    <div style="float:left;" class="tabLabelCont tabCur_1" onclick="setTab('one',4,4);" id="divM4">
                        <asp:Label ID="one4" CssClass="navigationlabel" runat="server" 
                          >订单行</asp:Label></div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR_1" id="divR4"></div>
                    </div>
               </div>
            
         <div id="div_content">
                 <div id="con_one_1" style="display:block;">
                    <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                        <tr>
                            <td width="180px">
                                <asp:Label ID="lblReceiptID" CssClass="label" runat="server" Text="直运订单号" 
                                    meta:resourcekey="lblReceiptID"></asp:Label>
                            </td>
                            <td width="180px">
                                <asp:Label ID="lblStatus" CssClass="label" runat="server" Text="状态" 
                                    meta:resourcekey="lblStatus"></asp:Label>
                            </td>
                            
                            <td width="180px">
                                <asp:Label ID="lblPoID" runat="server" CssClass="label" Text="门" 
                                    meta:resourcekey="lblPoID"></asp:Label>
                            </td>
                            <td width="180px">
                                <asp:Label ID="lblReceiptDate" CssClass="label" runat="server" Text="订单日期" 
                                    meta:resourcekey="lblReceiptDate"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td width="180px">
                                <asp:TextBox ID="txtReceiptID" runat="server" CssClass="textbox" 
                                    MaxLength="20"   Text="00000001"                               
                                    meta:resourcekey="txtReceiptID"></asp:TextBox>
                            </td>
                            <td width="180px">
                                <asp:DropDownList ID="ddlStatus" runat="server" CssClass="mediumselectbox" 
                                    Enabled="False" meta:resourcekey="ddlStatus" >
                                    <asp:ListItem Value=0 Text="New"></asp:ListItem>
                                    </asp:DropDownList>
                            </td>
                            <td width="180px">
                                <asp:TextBox ID="txtPoID" runat="server" Enabled="False" CssClass="textbox" 
                                    meta:resourcekey="txtPoID" ></asp:TextBox>
                            </td>
                            <td width="180px">
                                <asp:TextBox ID="txtReceiptDate" runat="server" CssClass="textbox"  
                                    onblur="Javascript:dataVer._IsTime(this,'lblMsg')" 
                                    meta:resourcekey="txtReceiptDate"></asp:TextBox><img src="../Images/calendar.gif" class="img" alt="请选择日期" onclick="setday(this,txtReceiptDate)"/>
                            </td>
                        </tr>
                        <tr>
                            <td width="180px">
                                <asp:Label ID="lblOwnerID" runat="server" CssClass="label" Text="客户" 
                                    meta:resourcekey="lblOwnerID"></asp:Label><font class="must_input">*</font>
                            </td>
                            <td width="180px">
                                <asp:Label ID="lblReceiptType" runat="server" CssClass="label" Text="供应商代码" 
                                    meta:resourcekey="lblReceiptType"></asp:Label>
                            </td>
                            <td width="180px">
                                <asp:Label ID="lblExternalReceiptID" runat="server" CssClass="label" 
                                    Text="路线" meta:resourcekey="lblExternalReceiptID"></asp:Label>
                            </td>
                            <td width="180px">
                                <asp:Label ID="lblExpetedReceiptDate" runat="server" CssClass="label" 
                                    Text="要求发货日期" meta:resourcekey="lblExpetedReceiptDate" ></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td width="180px">
                                <asp:TextBox ID="txtOwnerID" runat="server" CssClass="textbox"  Text="Owner001"
                                    meta:resourcekey="txtOwnerID"></asp:TextBox><img src="../Images/icon_find.gif" id="imgOwnerID" runat="server" alt="select one item" class="img" onclick="selectOwner();"/>
                            </td>
                            <td width="180px">
                            <asp:TextBox ID="TextBox16" runat="server" CssClass="textbox" 
                                    meta:resourcekey="txtExternalReceiptID"></asp:TextBox>
                            </td>
                            <td width="180px">
                                <asp:TextBox ID="txtExternalReceiptID" runat="server" CssClass="textbox" 
                                    meta:resourcekey="txtExternalReceiptID"></asp:TextBox>
                            </td>
                            <td width="180px">
                                <asp:TextBox ID="txtExpetedReceiptDate" runat="server" CssClass="textbox" 
                                    onblur="Javascript:dataVer._IsTime(this,'lblMsg')" 
                                    meta:resourcekey="txtExpetedReceiptDate"></asp:TextBox><img src="../Images/calendar.gif" class="img" alt="请选择日期" onclick="setday(this,txtExpetedReceiptDate)"/>
                            </td>
                        </tr>
                        <tr>
                            <td width="180px">
                                <asp:Label ID="lblTotalExceptQty" runat="server" CssClass="label" Text="外部订单号" 
                                    meta:resourcekey="lblTotalExceptQty"></asp:Label>
                            </td>
                            <td width="180px">
                                <asp:Label ID="lblTotalReceiptQty" runat="server" CssClass="label" Text="处理类型" 
                                    meta:resourcekey="lblTotalReceiptQty"></asp:Label>
                            </td>
                            <td width="180px">
                                <asp:Label ID="lblPackingSlipNumber" runat="server" CssClass="label" 
                                    Text="站点" meta:resourcekey="lblPackingSlipNumber"></asp:Label>
                            </td>
                            <td width="180px">
                              <asp:Label ID="lblArrivalDate" runat="server" CssClass="label" Text="实际发货日期" 
                                    meta:resourcekey="lblArrivalDate" ></asp:Label><font class="must_input">*</font>
                            </td>
                        </tr>
                        <tr>
                            <td width="180px">
                                <asp:TextBox ID="txtTotalExceptQty" runat="server" CssClass="textbox"  Text="000001"
                                    Enabled="False" meta:resourcekey="txtTotalExceptQty"></asp:TextBox>
                            </td>
                            <td width="180px">
                                <asp:DropDownList ID="ddlReceiptType" runat="server" CssClass="mediumselectbox" 
                                    meta:resourcekey="ddlReceiptType" >
                                    <asp:ListItem Value="0" Text=""></asp:ListItem>
                                    </asp:DropDownList>
                            </td>
                            <td width="180px">
                                <asp:TextBox ID="txtPackingSlipNumber" runat="server" CssClass="textbox" 
                                    meta:resourcekey="txtPackingSlipNumber"></asp:TextBox>
                            </td>
                            <td width="180px">
                             <asp:TextBox ID="txtArrivalDate" runat="server" CssClass="textbox" 
                                    onblur="Javascript:dataVer._IsTime(this,'lblMsg')" 
                                    meta:resourcekey="txtArrivalDate"></asp:TextBox><img src="../Images/calendar.gif" class="img" alt="请选择日期" onclick="setday(this,txtArrivalDate)"/>   
                            </td>
                        </tr>
                        <tr>
                            <td width="180px">
                                <asp:Label ID="lblTotalGrossWeight" runat="server" CssClass="label" Text="集装箱号" 
                                    meta:resourcekey="lblTotalGrossWeight"></asp:Label>
                            </td>
                            <td width="180px">
                                <asp:Label ID="lblTotalCube" runat="server" CssClass="label" Text="外部装载号" 
                                    meta:resourcekey="lblTotalCube"></asp:Label>
                            </td>
                            <td width="180px">
                                 <asp:Label ID="lblWareHouseRef" runat="server" CssClass="label" Text="装载号" 
                                     meta:resourcekey="lblWareHouseRef"></asp:Label>
                            </td>
                            <td width="180px">
                                  <asp:Label ID="lblRma" runat="server" CssClass="label" Text="到货日期" 
                                      meta:resourcekey="lblRma"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td width="180px">
                                 <asp:TextBox ID="TextBox17" runat="server" CssClass="textbox" 
                                   meta:resourcekey="txtTotalCube"></asp:TextBox>
                            </td>
                            <td width="180px">
                                <asp:TextBox ID="txtTotalCube" runat="server" CssClass="textbox" 
                                   meta:resourcekey="txtTotalCube"></asp:TextBox>
                            </td>
                            <td width="180px">
                                <asp:TextBox ID="txtWareHouseRef" runat="server" CssClass="textbox" 
                                    meta:resourcekey="txtWareHouseRef"></asp:TextBox>
                            </td>
                            <td width="180px">
                                <asp:TextBox ID="txtRma" runat="server" CssClass="textbox" 
                                    meta:resourcekey="txtRma"></asp:TextBox>
                            </td>
                        </tr>
                        <tr style="height:10px;"><td> </td><td></td><td></td><td></td></tr>
                           <tr>
                            <td width="180px">
                                <asp:Label ID="Label9" runat="server" CssClass="label" Text="当前货位" 
                                    meta:resourcekey="lblTotalGrossWeight"></asp:Label>
                            </td>
                            <td width="180px">
                                <asp:Label ID="Label10" runat="server" CssClass="label" Text="自货位" 
                                    meta:resourcekey="lblTotalCube"></asp:Label>
                            </td>
                            <td width="180px">
                                 <asp:Label ID="Label11" runat="server" CssClass="label" Text="至货位" 
                                     meta:resourcekey="lblWareHouseRef"></asp:Label>
                            </td>
                            <td width="180px">
                            </td>
                        </tr>
                        <tr>
                            <td width="180px">
                                 <asp:TextBox ID="TextBox18" runat="server" CssClass="textbox" 
                                   meta:resourcekey="txtTotalCube"></asp:TextBox>
                            </td>
                            <td width="180px">
                                <asp:TextBox ID="TextBox19" runat="server" CssClass="textbox" 
                                   meta:resourcekey="txtTotalCube"></asp:TextBox>
                            </td>
                            <td width="180px">
                                <asp:TextBox ID="TextBox20" runat="server" CssClass="textbox" 
                                    meta:resourcekey="txtWareHouseRef"></asp:TextBox>
                            </td>
                            <td width="180px">
                            </td>
                        </tr>
                           <tr>
                            <td width="180px">
                                <asp:Label ID="Label13" runat="server" CssClass="label" Text="数量" 
                                    meta:resourcekey="lblTotalGrossWeight"></asp:Label>
                            </td>
                            <td width="180px">
                                <asp:Label ID="Label14" runat="server" CssClass="label" Text="体积" 
                                    meta:resourcekey="lblTotalCube"></asp:Label>
                            </td>
                            <td width="180px">
                                 <asp:Label ID="Label15" runat="server" CssClass="label" Text="重量" 
                                     meta:resourcekey="lblWareHouseRef"></asp:Label>
                            </td>
                            <td width="180px">
                               
                            </td>
                        </tr>
                        <tr>
                            <td width="180px">
                                 <asp:TextBox ID="TextBox22" runat="server" CssClass="textbox" 
                                   meta:resourcekey="txtTotalCube"></asp:TextBox>
                            </td>
                            <td width="180px">
                                <asp:TextBox ID="TextBox23" runat="server" CssClass="textbox" 
                                   meta:resourcekey="txtTotalCube"></asp:TextBox>
                            </td>
                            <td width="180px">
                                <asp:TextBox ID="TextBox24" runat="server" CssClass="textbox" 
                                    meta:resourcekey="txtWareHouseRef"></asp:TextBox>
                            </td>
                            <td width="180px">
                            </td>
                        </tr>
                    </table>
                 </div>
                 <div id="con_one_2" style="display:none;">
                    <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;" >
                        <tr>
                              <td width="180px" >
                                <asp:Label ID="lblVendorRef" runat="server" CssClass="label" Text="订单号" 
                                      meta:resourcekey="lblVendorRef"></asp:Label>
                            </td>
                            <td width="180px">
                                <asp:Label ID="lblVendorID" runat="server" CssClass="label" Text="收货人代码" 
                                    meta:resourcekey="lblVendorID"></asp:Label>
                            </td>
                            <td width="360px" colspan="2"  >
                                <asp:Label ID="lblVendorName" runat="server" CssClass="label" Text="收货人名称" 
                                    meta:resourcekey="lblVendorName"></asp:Label>
                            </td>
                           
                        </tr>
                        <tr>
                           
                            <td width="180px" >
                                <asp:TextBox ID="txtVendorID" runat="server" CssClass="textbox" 
                                 
                                    meta:resourcekey="txtVendorID"></asp:TextBox><img src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectVendor();"/>
                            </td>
                            <td width="360px"  colspan="2" >
                                <asp:TextBox ID="txtVendorName" runat="server" CssClass="largetextbox" 
                                    meta:resourcekey="txtVendorName"></asp:TextBox>
                            </td>
                            <td width="180px">
                                <asp:TextBox ID="txtVendorRef" runat="server" CssClass="textbox" 
                                    meta:resourcekey="txtVendorRef"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td width="180px">
                                <asp:Label ID="lblVendorCity" runat="server" CssClass="label" Text="城市" 
                                    meta:resourcekey="lblVendorCity"></asp:Label>
                            </td>
                            <td width="180px">
                                <asp:Label ID="lblVendorProv" runat="server" CssClass="label" Text="省份" 
                                    meta:resourcekey="lblVendorProv"></asp:Label>
                            </td>
                            <td width="180px">
                                <asp:Label ID="lblVendorZip" runat="server" CssClass="label" Text="联系人1" 
                                    meta:resourcekey="lblVendorZip"></asp:Label>
                            </td>
                            <td width="180px"  >
                                <asp:Label ID="lblVendorCountry" runat="server" CssClass="label" Text="联系人2" 
                                    meta:resourcekey="lblVendorCountry"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td width="180px">
                                <asp:TextBox ID="txtVendorCity" runat="server" CssClass="textbox"  Text="西安"
                                    meta:resourcekey="txtVendorCity"></asp:TextBox>
                            </td>
                            <td width="180px">
                                <asp:TextBox ID="txtVendorProv" runat="server" CssClass="textbox"   Text="陕西"
                                    meta:resourcekey="txtVendorProv"></asp:TextBox>
                            </td>
                            <td width="180px">
                                <asp:TextBox ID="txtVendorZip" runat="server" CssClass="textbox" Text="Black"
                                    onblur="Javascript:dataVer._IsPost(this,'lblMsg')" 
                                    meta:resourcekey="txtVendorZip"></asp:TextBox>
                            </td>
                            <td width="180px"  >
                                <asp:TextBox ID="txtVendorCountry" runat="server" CssClass="textbox" 
                                    meta:resourcekey="txtVendorCountry"></asp:TextBox>
                            </td>
                        </tr>
                         <tr>
                            <td width="180px">
                                <asp:Label ID="Label2" runat="server" CssClass="label" Text="邮编" 
                                    meta:resourcekey="lblVendorCity"></asp:Label>
                            </td>
                            <td width="180px">
                                <asp:Label ID="Label3" runat="server" CssClass="label" Text="国家" 
                                    meta:resourcekey="lblVendorProv"></asp:Label>
                            </td>
                            <td width="180px">
                                <asp:Label ID="Label4" runat="server" CssClass="label" Text="电话" 
                                    meta:resourcekey="lblVendorZip"></asp:Label>
                            </td>
                            <td width="180px"  >
                                <asp:Label ID="Label5" runat="server" CssClass="label" Text="电话" 
                                    meta:resourcekey="lblVendorCountry"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td width="180px">
                                <asp:TextBox ID="TextBox1" runat="server" CssClass="textbox"  Text="71000"
                                    meta:resourcekey="txtVendorCity"></asp:TextBox>
                            </td>
                            <td width="180px">
                                <asp:TextBox ID="TextBox2" runat="server" CssClass="textbox"  Text="中国"
                                    meta:resourcekey="txtVendorProv"></asp:TextBox>
                            </td>
                            <td width="180px">
                                <asp:TextBox ID="TextBox3" runat="server" CssClass="textbox"  Text="84011185"
                                    onblur="Javascript:dataVer._IsPost(this,'lblMsg')" 
                                    meta:resourcekey="txtVendorZip"></asp:TextBox>
                            </td>
                            <td width="180px"  >
                                <asp:TextBox ID="TextBox4" runat="server" CssClass="textbox" 
                                    meta:resourcekey="txtVendorCountry"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td width="180px"  >
                                <asp:Label ID="lblVendorAddress" runat="server" CssClass="label" Text="地址" 
                                    meta:resourcekey="lblVendorAddress"></asp:Label>
                            </td>
                            <td width="180px">
                              
                            </td>
                            <td width="180px">
                                <asp:Label ID="lblVendorContact" runat="server" CssClass="label" Text ="传真" 
                                    meta:resourcekey="lblVendorContact"></asp:Label>
                            </td> 
                            <td width="180px">
                                <asp:Label ID="Label1" runat="server" CssClass="label" Text ="传真" 
                                    meta:resourcekey="lblVendorContact"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td width="180px" colspan=2 rowspan="3">
                                <asp:TextBox ID="txtVendorAddress"  runat="server" CssClass="largetextarea" 
                                    TextMode="MultiLine" meta:resourcekey="txtVendorAddress"></asp:TextBox>
                            </td>
                            <td width="180px">
                                <asp:TextBox ID="txtVendorPhone" runat="server" CssClass="textbox"  Text="84011185"
                                    onblur="Javascript:dataVer._IsPhone(this,'lblMsg')" 
                                    meta:resourcekey="txtVendorPhone"></asp:TextBox>
                            </td>
                            <td width="180px">
                                <asp:TextBox ID="txtVendorContact" runat="server" CssClass="textbox" Text="84011185"
                                    meta:resourcekey="txtVendorContact"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblVendorFax" runat="server" CssClass="label" Text="电子邮件" 
                                    meta:resourcekey="lblVendorFax" ></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="lblVendorEmail" runat="server" CssClass="label" Text="电子邮件" 
                                    meta:resourcekey="lblVendorEmail"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:TextBox ID="txtVendorFax" runat="server" CssClass="textbox" Text="xxx@xxx.com"
                                    onblur="Javascript:dataVer._IsFax(this,'lblMsg')" 
                                    meta:resourcekey="txtVendorFax"></asp:TextBox>
                            </td>
                            <td>
                                <asp:TextBox ID="txtVendorEmail" runat="server" CssClass="textbox"  Text="xxx@xxx.com"
                                    onblur="Javascript:dataVer._IsMail(this,'lblMsg')" 
                                    meta:resourcekey="txtVendorEmail"></asp:TextBox>
                            </td>
                        </tr>
                        <tr style="height:10px;"><td></td><td></td><td></td><td></td></tr>
                    </table>
                 </div>

                 <div id="con_one_3" style="display:none;">
                    <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                        <tr>
                          <td width="180px">
                               <asp:Label ID="Label6" runat="server" CssClass="label" Text ="订单号" 
                                    meta:resourcekey="lblUdf1"></asp:Label>
                            </td>
                            <td width="180px">
                            
                            </td>
                            <td width="180px">
                                <asp:Label ID="lblUdf1" runat="server" CssClass="label" Text ="自定义字段01" 
                                    meta:resourcekey="lblUdf1"></asp:Label>
                            </td>
                            <td width="180px">
                                <asp:Label ID="lblUdf6" runat="server" CssClass="label" Text ="自定义字段06" 
                                    meta:resourcekey="lblUdf6"></asp:Label>
                            </td>
                          
                        </tr>
                        <tr>
                            <td width="180px">
                               <asp:TextBox ID="TextBox14" runat="server" CssClass="textbox" 
                                    meta:resourcekey="txtUdf1"></asp:TextBox>
                            </td>
                            <td width="180px">
                             
                            </td>
                            <td width="180px">
                               <asp:TextBox ID="txtUdf1" runat="server" CssClass="textbox" 
                                    meta:resourcekey="txtUdf1"></asp:TextBox>
                            </td>
                            <td width="180px">
                             
                                <asp:TextBox ID="txtUdf6" runat="server" CssClass="textbox" 
                                    meta:resourcekey="txtUdf6"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                        <td width="180px">
                              <asp:Label ID="Label7" runat="server" CssClass="label" Text ="拣货说明" 
                                    meta:resourcekey="lblUdf1"></asp:Label>
                            </td>
                            <td width="180px">
                            
                            </td>
                            <td width="180px">
                                <asp:Label ID="lblUdf2" runat="server" CssClass="label" Text ="自定义字段02" 
                                    meta:resourcekey="lblUdf2"></asp:Label>
                            </td>
                            <td width="180px">
                                 <asp:Label ID="lblUdf7" runat="server" CssClass="label" Text ="自定义字段07" 
                                     meta:resourcekey="lblUdf7"></asp:Label>
                            </td>
                       
                        </tr>
                        <tr>
                            <td width="180px" rowspan=3 colspan=2>
                               <asp:TextBox ID="TextBox13"  runat="server" CssClass="largetextarea" 
                                    TextMode="MultiLine" meta:resourcekey="txtVendorAddress"></asp:TextBox>
                            </td>
                            
                            <td width="180px">
                               <asp:TextBox ID="TextBox5" runat="server" CssClass="textbox" 
                                    meta:resourcekey="txtUdf1"></asp:TextBox>
                            </td>
                            <td width="180px">
                             
                                <asp:TextBox ID="TextBox6" runat="server" CssClass="textbox" 
                                    meta:resourcekey="txtUdf6"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                        <td width="180px">
                               <asp:Label ID="lblUdf8" runat="server" CssClass="label" Text="自定义字段08" 
                                    meta:resourcekey="lblUdf8"></asp:Label>
                            </td>
                            <td width="180px">
                              <asp:Label ID="lblUdf3" runat="server" CssClass="label" Text="自定义字段03" 
                                    meta:resourcekey="lblUdf3"></asp:Label>
                            </td>
                         
                        </tr>
                        <tr>
                           
                            <td width="180px">
                               <asp:TextBox ID="TextBox7" runat="server" CssClass="textbox" 
                                    meta:resourcekey="txtUdf1"></asp:TextBox>
                            </td>
                            <td width="180px">
                             
                                <asp:TextBox ID="TextBox8" runat="server" CssClass="textbox" 
                                    meta:resourcekey="txtUdf6"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                          <td width="180px">
                          <asp:Label ID="Label8" runat="server" CssClass="label" Text ="备注" 
                                    meta:resourcekey="lblUdf1"></asp:Label>
                            </td>
                            <td width="180px">
                                &nbsp;
                            </td>
                            <td width="180px">
                                <asp:Label ID="lblUdf04" runat="server" CssClass="label" Text="自定义字段04" 
                                    meta:resourcekey="lblUdf04"></asp:Label>
                            </td>
                            <td width="180px">
                                <asp:Label ID="lblUdf09" runat="server" CssClass="label" Text="自定义字段09" 
                                    meta:resourcekey="lblUdf09"></asp:Label>
                            </td>
                          
                        </tr>
                        <tr>
                            <td width="180px" rowspan=3 colspan=2>
                               <asp:TextBox ID="TextBox9"  runat="server" CssClass="largetextarea" 
                                    TextMode="MultiLine" meta:resourcekey="txtVendorAddress"></asp:TextBox>
                            </td>
                            
                            <td width="180px">
                               <asp:TextBox ID="TextBox10" runat="server" CssClass="textbox" 
                                    meta:resourcekey="txtUdf1"></asp:TextBox>
                            </td>
                            <td width="180px">
                             
                                <asp:TextBox ID="TextBox15" runat="server" CssClass="textbox" 
                                    meta:resourcekey="txtUdf6"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                         
                            <td width="180px">
                                <asp:Label ID="lblUdf5" runat="server" CssClass="label" Text="自定义字段05" 
                                    meta:resourcekey="lblUdf5"></asp:Label>
                            </td>
                            <td width="180px">
                                <asp:Label ID="lblUdf10" runat="server" CssClass="label" Text="自定义字段10" 
                                    meta:resourcekey="lblUdf10"></asp:Label>
                            </td>
                           
                        </tr>
                        <tr>
                            
                            <td width="180px">
                               <asp:TextBox ID="TextBox11" runat="server" CssClass="textbox" 
                                    meta:resourcekey="txtUdf1"></asp:TextBox>
                            </td>
                            <td width="180px">
                             
                                <asp:TextBox ID="TextBox12" runat="server" CssClass="textbox" 
                                    meta:resourcekey="txtUdf6"></asp:TextBox>
                            </td>
                        </tr>
                        <tr style="height:10px;"><td colspan="4"></td></tr>
                    </table>
                 </div>
                 <div id="con_one_4" style="display:none; overflow-x:auto; overflow-y:hidden; ">
                    <table width="1080px" style="display: block; margin-left: 10px; margin-top: 10px;">
                         <tr>
                             <td>
                                <table>
                                    <tr>
                                        <td>
                                            <asp:Button ID="btnAddDetail" runat="server" CssClass="button"  Text="<%$Resources:ButtonResource,btnAddDetail%>" 
                                                onclick="btnAddDetail_Click"    />
                                        </td>
                                        <td>
                                            <asp:Button ID="btnDeleteDetail" runat="server" CssClass="button" 
                                                 Text="<%$Resources:ButtonResource,btnDeleteDetail%>"
                                             
                                                OnClientClick="javascript:if(confirm('确定要删除这几条明细吗?')) return true; else return false;" 
                                                onclick="btnDeleteDetail_Click" 
                                               />
                                        </td>
                                          
                                    </tr>
                                </table>
                             </td>
                         </tr>  
                         <tr style="height:10px;">
                            <td></td>
                            <td></td>
                         </tr>
                         <tr>
                            <td>
                                <div>
                                <table class="gridview" cellspacing="0" rules="all" border="1" id="Table1"
                                    style="width: 1000px; border-collapse: collapse;">
                                    <tr class="GridViewHeaderStyle">
                                        <th class="GridViewRowWidth_40" align="center" scope="col">
                                            <input id="gvReceiptDetail_ctl01_CheckBox1" type="checkbox" name="gvReceiptDetail$ctl01$CheckBox1"
                                                onclick="selectAll(this,'gvReceiptDetail');" />
                                        </th>
                                        <th scope="col">
                                            序号
                                        </th>
                                        <th scope="col">
                                            明细
                                        </th>
                                         <th scope="col">
                                            <a href="javascript:__doPostBack('gvReceiptDetail','Sort$PackID')">货主</a>
                                        </th>
                                        <th scope="col">
                                            <a href="javascript:__doPostBack('gvReceiptDetail','Sort$SkuID')">货品</a>
                                        </th>
                                        <th scope="col">
                                            <a href="javascript:__doPostBack('gvReceiptDetail','Sort$SkuDescr')">货品描述</a>
                                        </th>
                                        <th scope="col">
                                            <a href="javascript:__doPostBack('gvReceiptDetail','Sort$StatusD')">状态</a>
                                        </th>
                                        <th scope="col">
                                            <a href="javascript:__doPostBack('gvReceiptDetail','Sort$ExpectedQty')">数量</a>
                                        </th>
                                        <th scope="col">
                                            <a href="javascript:__doPostBack('gvReceiptDetail','Sort$RECEIVEDQTY')">破损数量</a>
                                        </th>
                                         <th scope="col">
                                            <a href="javascript:__doPostBack('gvReceiptDetail','Sort$UomID')">备注</a>
                                        </th>
                                    </tr>
                                    <tr class="GridViewRowStyle">
                                        <td class="GridViewRowWidth_40" align="center">
                                            <input id="gvReceiptDetail_ctl02_chbSelect" type="checkbox" name="gvReceiptDetail$ctl02$chbSelect" />
                                        </td>
                                        <td class="GridViewRowWidth_50">
                                            1
                                        </td>
                                        <td class="GridViewRowWidth_50" align="center">
                                            <a href="#"
                                                id="gvReceiptDetail_ctl02_receiptA" target="_self">
                                                <img src="../Images/icon_edit.gif" class="img" style="border: none 0px blue;" alt="receipt" /></a>
                                        </td>
                                        <td class="GridViewRowWidth_100">
                                            Owner001
                                        </td>
                                         <td class="GridViewRowWidth_50">
                                            sku001
                                        </td>
                                        <td class="GridViewRowWidth_200">
                                            <span id="gvReceiptDetail_ctl02_lblSkuDescr" title="尊尼获加（红牌）苏格兰威士忌方瓶">尊尼获加（红牌）苏格兰威士忌...</span>
                                        </td>
                                       
                                        <td class="GridViewRowWidth_50">
                                            New
                                        </td>
                                        <td class="GridViewRowWidth_100">
                                            100.00
                                        </td>
                                        <td class="GridViewRowWidth_100">
                                            <span id="gvReceiptDetail_ctl02_lblExpectedQty">0.00</span>
                                        </td>
                                        <td class="GridViewRowWidth_100">
                                            <span id="gvReceiptDetail_ctl02_lblReceivedQty"></span>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                            </td>
                            <td></td>
                         </tr>
                              <tr style="height:30px;">
                            <td></td>
                            <td></td>
                         </tr>
                     </table>  
                 </div>
             
           </div>
           
          
                <input type="hidden" id="hiddenFlag" />
                <input type="hidden" id="hdnLineID" runat="server" >
                    <input id="hdnReceiptID" runat="server" type="hidden"></input>
                        <input id="hdnFlag" runat="server" type="hidden" value="0"></input>
                            <input id="hdnType" runat="server" type="hidden"></input>
                                <input id="hdnCopy" runat="server" type="hidden"></input>
                                    <input id="hiddenReportFlag" type="hidden" />
                                    <input id="hdnPageQty" runat="server" type="hidden" value="0"></input>
                                        <input id="hdnPageType" runat="server" type="hidden" value="0"></input>
                                        </input>
                                    </input>
                                </input>
                            </input>
                        </input>
                    </input>
                </input>
            </ContentTemplate>
<%--                 <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="btnNew" EventName="Click" />
                    <asp:AsyncPostBackTrigger ControlID="btnSave" EventName="Click" />
                    <asp:AsyncPostBackTrigger ControlID="btnCopy" EventName="Click" />
                </Triggers>--%>  
      </asp:UpdatePanel>
            <input type="hidden" id="hdnFrom" runat="server" />
            <input type="hidden" id="hdnInportValue" runat="server"  />
            <input type="hidden" id="hdnImportPOValue" runat="server"  />
            <input type="hidden" id="hdnIspalletized" runat="server" />
            <input type="hidden" id="hdnDataFormat"  runat="server"/>  
            <input type="hidden" id="hdncalendarFlag"  runat="server"/>  
          

    </div>
    </form>
</body>
</html>
